package cn.source.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.mapper.UserArticlePointsMapper;
import cn.source.domain.UserArticlePoints;
import cn.source.service.IUserArticlePointsService;

/**
 * 用户文章积分表Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-12-17
 */
@Service
public class UserArticlePointsServiceImpl implements IUserArticlePointsService 
{
    @Autowired
    private UserArticlePointsMapper userArticlePointsMapper;

    /**
     * 查询用户文章积分表
     * 
     * @param id 用户文章积分表主键
     * @return 用户文章积分表
     */
    @Override
    public UserArticlePoints selectUserArticlePointsById(Long id)
    {
        return userArticlePointsMapper.selectUserArticlePointsById(id);
    }

    /**
     * 查询用户文章积分表列表
     * 
     * @param userArticlePoints 用户文章积分表
     * @return 用户文章积分表
     */
    @Override
    public List<UserArticlePoints> selectUserArticlePointsList(UserArticlePoints userArticlePoints)
    {
        return userArticlePointsMapper.selectUserArticlePointsList(userArticlePoints);
    }

    /**
     * 新增用户文章积分表
     * 
     * @param userArticlePoints 用户文章积分表
     * @return 结果
     */
    @Override
    public int insertUserArticlePoints(UserArticlePoints userArticlePoints)
    {
        return userArticlePointsMapper.insertUserArticlePoints(userArticlePoints);
    }

    /**
     * 修改用户文章积分表
     * 
     * @param userArticlePoints 用户文章积分表
     * @return 结果
     */
    @Override
    public int updateUserArticlePoints(UserArticlePoints userArticlePoints)
    {
        return userArticlePointsMapper.updateUserArticlePoints(userArticlePoints);
    }

    /**
     * 批量删除用户文章积分表
     * 
     * @param ids 需要删除的用户文章积分表主键
     * @return 结果
     */
    @Override
    public int deleteUserArticlePointsByIds(Long[] ids)
    {
        return userArticlePointsMapper.deleteUserArticlePointsByIds(ids);
    }

    /**
     * 删除用户文章积分表信息
     * 
     * @param id 用户文章积分表主键
     * @return 结果
     */
    @Override
    public int deleteUserArticlePointsById(Long id)
    {
        return userArticlePointsMapper.deleteUserArticlePointsById(id);
    }
}
